/**
 * @file
 * @author dousha
 * @date 2020/11/30.
 */

#ifndef CRYPTSTICK_MENU_STATE_MACHINE_H
#define CRYPTSTICK_MENU_STATE_MACHINE_H

#include <stdint.h>

#define MENU_FIRST_RUN 0
#define MENU_LOCKED 1
#define MENU_DASH 2
#define MENU_RNG 3
#define MENU_BUSY 4
#define MENU_BROWSER 5
#define MENU_INFO 6
#define MENU_INSPECTOR 7
#define MENU_ACCESS_DENIED 255

#define MENU_OPTION_COUNT 4

extern void menu_state_machine_init();

extern void menu_state_machine_callback(uint8_t);

extern uint8_t is_device_unlocked();

extern void menu_repaint();

#endif //CRYPTSTICK_MENU_STATE_MACHINE_H
